package game.view.scene
{
	import asset.AssetBase;
	
	import flash.geom.Point;
	
	import game.common.MapAssetManager;
	import game.vo.MapAssetVO;
	
	
	public class MapAssetBase extends AssetBase
	{
		private var _assetLink:String;
		private var _mapAssetVO:MapAssetVO=new MapAssetVO();
		
		public function MapAssetBase(assetLink:String=null, isLoadAsset:Boolean=true, point:Point=null)
		{
			_assetLink=assetLink;
			super(MapAssetManager.getAssetByType(assetLink), isLoadAsset, point);
		}
		
		/**
		 *加载物件 
		 */
		override public function loadAsset():void
		{
			super.sourceAsset = MapAssetManager.getAssetByType(_assetLink)
			super.loadAsset();
		}
		
		override public function dispose():void
		{
			super.dispose();
			if(parent) parent.removeChild(this);
		}

		public function get mapAssetVO():MapAssetVO
		{
			return _mapAssetVO;
		}

		public function set mapAssetVO(value:MapAssetVO):void
		{
			_mapAssetVO = value;
		}

	}
}